import {request} from '../until/request'

export function getLogin(data){
  return request({
    url:"/login?username="+data.username+"&password="+data.password,
    method:'post',
    data:data,
    username:data.username,
    password:data.password
  })
}
export function register(data){//获取注册的数据
  return request({
    url:'/admin/register',
    method:'post',
    data:data
  })
}